package com.lrkj.property.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 车场管理对象 tm_parking
 *
 * @author yajun_ren
 * @date 2022-03-15
 */
@Data
public class Parking extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 车场id
     */
    private String parkingId;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String communityId;

    /**
     * 车场名称
     */
    @Excel(name = "车场名称")
    private String parkingName;

    /**
     * 车场类型
     */
    @Excel(name = "车场类型")
    private String parkingType;

    /**
     * 车场面积
     */
    @Excel(name = "车场面积")
    private BigDecimal parkingArea;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNum;

    /**
     * 组织机构
     */
    @Excel(name = "组织机构")
    private String deptId;

    /**
     * 祖父ID
     */
    @Excel(name = "祖父ID")
    private String ancestors;

    /**
     * 车位编号
     */
    @Excel(name = "车场编号")
    private String parkingNum;

    //项目名称
    private String communityName;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("parkingId", getParkingId())
                .append("communityId", getCommunityId())
                .append("parkingName", getParkingName())
                .append("parkingType", getParkingType())
                .append("parkingArea", getParkingArea())
                .append("orderNum", getOrderNum())
                .append("deptId", getDeptId())
                .append("ancestors", getAncestors())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
